import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token-ap'   // token
const AcceptStatus = 'Admin-Accept-status'   // 审核状态

export function getToken() {
  return Cookies.get(TokenKey) 
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}


export function getAcceptStatus() {
  return Cookies.get(AcceptStatus) 
}

export function setAcceptStatus(status) {
  return Cookies.set(AcceptStatus, status)
}

export function removeAcceptStatus() {
  return Cookies.remove(AcceptStatus)
}





// 自定义-----
export function getCookie(val) {
  // Cookies.set('JSESSIONID', Cookies.get('token'))
  return Cookies.get(val)
}
export function removeCookie(val) {
  return Cookies.remove(val)
}
